package com.xxx.control.application;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;

import com.xxx.control.MainActivity;


/**
 * Create by Sxl on 2024/7/25.
 */
public class BootStartUpReceive extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        (new Handler(context.getMainLooper())).postDelayed(new Runnable() {
            @Override
            public void run() {
                Intent intent = new Intent(context, MainActivity.class);
                intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                context.startActivity(intent);
            }
        }, 3000);
    }
}
